// 导入 ElementPlus 模块
import ElementPlus from 'element-plus'
// 导入图标模块
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
// 导入样式表
import 'element-plus/dist/index.css'

import { createApp } from 'vue'
import App from './App.vue'
// 导入路由模块
import shopRouter from './base/Router'
import "./style.css"
import { createPinia } from 'pinia'

import 'echarts'
import Echarts from 'vue-echarts'
const app = createApp(App)

// 加载 ElementPlus 模块
app.use(ElementPlus)

// 循环遍历所有图标组件，将其注册为全局组件进行使用
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.use(createPinia())
app.component('v-chart',Echarts)
app.use(shopRouter)
    .mount('#app')
    